package com.teradata.config;


import com.teradata.callback.CallBack;

/**
 *
 *@project chinabond-edb
 *@description 任务上下文接口
 *
 *@errorcode
 *          SystemException</br>
 *
 *@author
 *       2018-08-10 10:48 huzy Create 1.0 <br>
 *
 *@copyright ©2017-2017 中央结算公司，版权所有。
 */
public interface TaskContext {


    public void setTaskGrpName(String taskGrpName);

    public String getTaskGrpName();

    public void submit(ITask task);

    public void submit(ITask task, CallBack cb);

    public boolean lock();

    public int lockTime();

    public void unlock();

    public Object[] poll();

    public boolean empty();

    public int count();

    public boolean isSuspend();

    public void suspend(boolean flag);

    public long getDispatchTime();

    public void setDispatchTime(long dispatchTime);
}
